package com.study.ssm.focus;

import com.study.ssm.focus.entity.User;
import com.study.ssm.focus.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhoujunlin
 * @date 2023年07月28日 16:41
 * @desc
 */
@Configuration
@ComponentScan(basePackages = {"com.study.ssm.focus"})
public class FocusApplication {


    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(FocusApplication.class);

        UserService userService = ctx.getBean(UserService.class);
        userService.save(new User("focus", "focus666"));

    }

}
